﻿using System;

namespace WikiDoc
{
    /// <summary>
    /// 
    /// </summary>
    public interface IFormatter
    {
        /// <summary>
        /// Begins the tag.
        /// </summary>
        /// <param name="tag">The tag.</param>
        void BeginTag(string tag);

        /// <summary>
        /// Adds the attribute.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="value">The value.</param>
        void AddAttribute(string name, string value);

        /// <summary>
        /// Ends the tag.
        /// </summary>
        /// <param name="tag">The tag.</param>
        void EndTag(string tag);

        /// <summary>
        /// Appends the content.
        /// </summary>
        /// <param name="str">The STR.</param>
        void AppendContent(string str);
    }
}
